package com.nuedu.corejava.ch3.homework;

public class SelectHomeWork1 {
	public static void main(String[] args) {
		double sum=30000;
		double ysal=30000;
		for(int i=1;i<=10;i++){
			ysal=ysal*1.06;
			sum+=ysal;
		}
		System.out.println("十年后的年薪为"+ysal);
		System.out.println("十年后的总年薪为"+sum);
	}
	

}
